/*
 * @Author: 小花
 * @Date: 2022-05-15 15:42:56
 * @LastEditors: 小花
 * @LastEditTime: 2022-05-15 15:46:01
 * @FilePath: /vue3-teap/src/plugins/store/global.ts
 * @Description:
 */

import { ComponentInternalInstance, getCurrentInstance } from 'vue'

export default function useGlobalProperties () {
  const { appContext: { config: { globalProperties } } } = getCurrentInstance() as ComponentInternalInstance
  return { ...globalProperties }
}
